home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / share / doc / file / README.Debian < prev    next >
Encoding:
Text File  |  2012-03-04  |  744 b   |  27 lines

  1. file for Debian
  2. ---------------
  3.  
  4. How users can inject their own magics for fun:
  5.  
  6.   1. open /etc/magic and /etc/magic.mime with a text editor, as root,
  7.      and add your own magics.
  8.  
  9.   2. have fun.
  10.  
  11.  
  12. How package maintainers can inject their own magics for profit:
  13.  
  14.   1. place your magics as plain text files in
  15.      /usr/share/file/${binary_package_name}.
  16.  
  17.   2. call 'file --compile ${binary_package_name}' from /usr/share/file
  18.      in your postinst script (maybe we should have a trigger for that
  19.      at some point). this will produce the binary magics
  20.      /usr/share/file/${binary_package_name}.mgc.
  21.  
  22.   3. remove the binary magics in your postrm script.
  23.  
  24.   4. profit.
  25.  
  26.  -- Daniel Baumann <daniel@debian.org>  Sat, 27 Mar 2010 11:22:58 +0100
  27.